#include <iostream>
#include <vector>
using namespace std;

vector<double> w,t,l;

signed main()
{
    double a,b,c,rate = 1;
    while(cin>>a>>b>>c){
        w.push_back(a);
        t.push_back(b);
        l.push_back(c);
    }
    vector<char> v;
    for(int i=0;i<w.size();i++){
        if(w[i]>t[i]){
            if(w[i]>l[i]){
                v.push_back('W');
                rate *= w[i];
            }
            else{
                v.push_back('L');
                rate *= l[i];
            }
        }
        else{
            if(t[i]>l[i]){
                v.push_back('T');
                rate *= t[i];
            }
            else{
                v.push_back('L');
                rate *= l[i];
            }
        }
    }
    cout<<v[0];
    for(int i=1;i<v.size();i++)    cout<<" "<<v[i];
    double ans = (rate*0.65-1)*2;
    printf(" %.2f\n",ans);
    return 0;
}
